import BaseEnum from '@/core/utils/BaseEnum'
import BaseEnumValue from '@/core/utils/BaseEnumValue'

class IamAccountProfileRegisterSourceFromEnum extends BaseEnum<number> {
	UNKNOWN = new BaseEnumValue<number>(0, '未知')
	PC = new BaseEnumValue<number>(1, '电脑浏览器端')
	MOBILE_H5 = new BaseEnumValue<number>(2, '手机浏览器端')
	WX_PUBLIC_ACCOUNT = new BaseEnumValue<number>(3, '微信公众号')
	WX_MINI_APP = new BaseEnumValue<number>(4, '微信小程序')
	IOS = new BaseEnumValue<number>(5, 'ios')
	ANDROID = new BaseEnumValue<number>(6, 'android')
	constructor() {
		super(['UNKNOWN', 'PC', 'MOBILE_H5', 'WX_PUBLIC_ACCOUNT', 'WX_MINI_APP', 'IOS', 'ANDROID'])
	}
}

const enumModel = new IamAccountProfileRegisterSourceFromEnum()

export default enumModel
